<include file="Public:header" />
<div class="container main"> <include file="Public:left" />
  <div class="w790">
  <style>
  	#replyList ul li{margin-top:5px; background:#eee; padding:8px; width:700px;}
	.delnews{display:block; width:30px; font-size:20px; height:30px; border-radius:15px; background:#f00; color:#fff; line-height:30px; text-align:center;}
  </style>

 <div class="h"><a href="{:U('index',array('shipping_id'=>$_GET['shipping_id']))}" class="btn btn-info"><i class="glyphicon glyphicon-circle-arrow-left"></i> 返回物流列表</a>
 
 </div>
    <form class="checkoutform form-horizontal" action="{:U('update')}" method="post">
      <div class="table_ container">
      <input type="hidden" name="shipping_id" value="{$info.shipping_id}">
      <input type="hidden" name="id" value="{$info.id}">
  <div class="form-group">
      <label class="col-sm-2 control-label">地区</label>
      <div class="col-sm-10">
         <span id="areabox"></span>
      </div>
   </div>
     <div class="form-group">
      <label class="col-sm-2 control-label">物流名称</label>
      <div class="col-sm-10">
         <input class="form-control" datatype="*" value="{$info.title}" name="title" type="text" placeholder="物流名称">
      </div>
   </div>
      
<div class="form-group">
      <label class="col-sm-2 control-label">首重</label>
      <div class="col-sm-10">
         <input class="form-control" name="firstweight" value="{$info.firstweight}" type="text" placeholder="首重">
      </div>
   </div>
      <div class="form-group">
      <label class="col-sm-2 control-label">首重费用</label>
      <div class="col-sm-10">
         <input class="form-control" name="firstweightexpenses" value="{$info.firstweightexpenses}" type="text" placeholder="首重费用">
      </div>
   </div>
      
      <div class="form-group">
      <label class="col-sm-2 control-label">续重费用</label>
      <div class="col-sm-10">
         <input class="form-control" value="{$info.extendweightexpenses}" name="extendweightexpenses" type="text" placeholder="续重费用【超出首重部分每kg收费多少】">
      </div>
   </div>
   
   
<div class="form-group">
      <label class="col-sm-2 control-label">免费额度</label>
      <div class="col-sm-10">
         <input class="form-control" value="{$info.free}" name="free" type="text" placeholder="免费额度【金额满多少时免运费】">
      </div>
   </div>
       
      </div><div class="pages"><button type="submit" class="btn btn-success">保存</button></div>
    </form>
  </div>
  <div class="clear"></div>
</div>
<script>
	
	$(document).ready(function(e) {
		$.ajax({
			url:"{:U('changeArea')}",
			data:"id={$Think.get.id}",
			type:"POST",
			dataType:"html",
			success: function(data){
				$('#areabox').html(data);
			}
		});
    });
	function removnextAll(e){
		if($(e).next().length>0){
			removnextAll($(e).next());
			$(e).next().remove();
		}
	}
</script>
</body></html>